import request from '@/utils/request'

// 项目成本支出列表分页并查询
export function getCostProjectList(params) {
  return request({
    url: '/costProject/list',
    method: 'POST',
    params
  })
}

// 查询单条项目支出数据
export function selectCostProject(params) {
  return request({
    url: '/costProject/load',
    method: 'POST',
    params
  })
}

// 添加项目支出
export function addCostProject(data) {
  return request({
    url: '/costProject/add',
    method: 'POST',
    data
  })
}

// 查询合同项目的名称
export function getTeamInfoByProjectNameOrCode(params) {
  return request({
    url: '/projectInvocie/ProjectName',
    method: 'post',
    params
  })
}

// 查询支付类型
export function selectCostType(params) {
  return request({
    url: '/costProject/costType',
    method: 'POST',
    params
  })
}

// 删除单条项目数据
export function deleteCostProject(params) {
  return request({
    url: '/costProject/delete',
    method: 'POST',
    params
  })
}
// 在员工表里查询经办人
export function selectOperator(params) {
  return request({
    url: '/costProject/operator',
    method: 'POST',
    params
  })
}

// 项目成本支出修改
export function updateCostProject(data) {
  return request({
    url: '/costProject/update',
    method: 'POST',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}

